<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.telnet.TelnetClient类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1telnet_1_1TelnetClient.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#pac-methods">包函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1telnet_1_1TelnetClient-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.telnet.TelnetClient类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>Telnet客户端类。  
 <a href="classcommonsNet_1_1telnet_1_1TelnetClient.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.telnet.TelnetClient 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1telnet_1_1TelnetClient.png" usemap="#commonsNet.telnet.TelnetClient_map" alt=""/>
  <map id="commonsNet.telnet.TelnetClient_map" name="commonsNet.telnet.TelnetClient_map">
<area href="classcommonsNet_1_1telnet_1_1Telnet.html" title="实现Telnet的基本功能。" alt="commonsNet.telnet.Telnet" shape="rect" coords="0,56,187,80"/>
<area href="classcommonsNet_1_1SocketClient.html" title="SocketClient类提供客户端对象访问套接字所需的基本操作。打开套接字、关闭套接字、设置超时等。" alt="commonsNet.SocketClient" shape="rect" coords="0,0,187,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6ea0ab4acbad1904b97f7a2f273288cb"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a6ea0ab4acbad1904b97f7a2f273288cb">init</a> ()</td></tr>
<tr class="memdesc:a6ea0ab4acbad1904b97f7a2f273288cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认TelnetClient构造函数，设置终端类型 VT100 。  <br /></td></tr>
<tr class="separator:a6ea0ab4acbad1904b97f7a2f273288cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4f5ba176f9a5f705a6254da67a04e0d"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#ae4f5ba176f9a5f705a6254da67a04e0d">init</a> (maxSubnegotiationLength: Int64)</td></tr>
<tr class="memdesc:ae4f5ba176f9a5f705a6254da67a04e0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个具有指定最大子协商长度和默认终端类型的实例  <br /></td></tr>
<tr class="separator:ae4f5ba176f9a5f705a6254da67a04e0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2794447d2fdd21a0326a8cc4bcca6c63"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a2794447d2fdd21a0326a8cc4bcca6c63">init</a> (termtype: String)</td></tr>
<tr class="memdesc:a2794447d2fdd21a0326a8cc4bcca6c63"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用指定的终端类型构造实例。  <br /></td></tr>
<tr class="separator:a2794447d2fdd21a0326a8cc4bcca6c63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f85ac359fbc7aee7229fe7e5e323852"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a9f85ac359fbc7aee7229fe7e5e323852">init</a> (termtype: String, maxSubnegotiationLength: Int64)</td></tr>
<tr class="memdesc:a9f85ac359fbc7aee7229fe7e5e323852"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用指定的终端类型和最大子协商长度构造实例  <br /></td></tr>
<tr class="separator:a9f85ac359fbc7aee7229fe7e5e323852"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c8f8aef6debb8832f6699aa84aa3c1b"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a5c8f8aef6debb8832f6699aa84aa3c1b">addOptionHandler</a> (opthand: <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOptionHandler.html">TelnetOptionHandler</a>): Unit</td></tr>
<tr class="memdesc:a5c8f8aef6debb8832f6699aa84aa3c1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">为此telnet客户端注册一个新的TelnetOptionHandler以供使用。  <br /></td></tr>
<tr class="separator:a5c8f8aef6debb8832f6699aa84aa3c1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a495c8e32396ca1ac109ce67c40b204d1"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a495c8e32396ca1ac109ce67c40b204d1">deleteOptionHandler</a> (optcode: Int64): Unit</td></tr>
<tr class="memdesc:a495c8e32396ca1ac109ce67c40b204d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">注销TelnetOptionHandler。  <br /></td></tr>
<tr class="separator:a495c8e32396ca1ac109ce67c40b204d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae458e2814aa115e677695fd6b66b51d2"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#ae458e2814aa115e677695fd6b66b51d2">disconnect</a> ()</td></tr>
<tr class="memdesc:ae458e2814aa115e677695fd6b66b51d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">断开telnet会话，关闭输入和输出流以及套接字。调用disconnect以正确关闭连接。  <br /></td></tr>
<tr class="separator:ae458e2814aa115e677695fd6b66b51d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f96113d9e3e87b7dc9e2a0c2649b233"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a8f96113d9e3e87b7dc9e2a0c2649b233">getInputStream</a> ()</td></tr>
<tr class="memdesc:a8f96113d9e3e87b7dc9e2a0c2649b233"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回telnet连接输入流。  <br /></td></tr>
<tr class="separator:a8f96113d9e3e87b7dc9e2a0c2649b233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4377f74653a839a00b2fc193e9c21250"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a4377f74653a839a00b2fc193e9c21250">getLocalOptionState</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a4377f74653a839a00b2fc193e9c21250"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回本地端选项的状态  <br /></td></tr>
<tr class="separator:a4377f74653a839a00b2fc193e9c21250"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a16848d636d528ca4adbd71de2f7474"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a0a16848d636d528ca4adbd71de2f7474">getOutputStream</a> ()</td></tr>
<tr class="memdesc:a0a16848d636d528ca4adbd71de2f7474"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回telnet连接输出流  <br /></td></tr>
<tr class="separator:a0a16848d636d528ca4adbd71de2f7474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abba7c40aa13358f9e3a6a0a5c659a1b5"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#abba7c40aa13358f9e3a6a0a5c659a1b5">getReaderThread</a> (): Bool</td></tr>
<tr class="memdesc:abba7c40aa13358f9e3a6a0a5c659a1b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取读取器线程的状态。  <br /></td></tr>
<tr class="separator:abba7c40aa13358f9e3a6a0a5c659a1b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae355dd0fe4187bdbfcc6526b02d0a157"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#ae355dd0fe4187bdbfcc6526b02d0a157">getRemoteOptionState</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:ae355dd0fe4187bdbfcc6526b02d0a157"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回远程端选项的状态  <br /></td></tr>
<tr class="separator:ae355dd0fe4187bdbfcc6526b02d0a157"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd8d62824fc7c04b0c36b4cb9de1a259"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#abd8d62824fc7c04b0c36b4cb9de1a259">registerInputListener</a> (listener: () -&gt; Unit)</td></tr>
<tr class="memdesc:abd8d62824fc7c04b0c36b4cb9de1a259"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册一个监听器，以便在输入流上有新的传入数据可供读取时收到通知。一次只支持一个侦听器。  <br /></td></tr>
<tr class="separator:abd8d62824fc7c04b0c36b4cb9de1a259"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a905cb21fefc468abfa556ead4be8014d"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a905cb21fefc468abfa556ead4be8014d">registerNotifHandler</a> (notifhand: <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetNotificationHandler.html">TelnetNotificationHandler</a>)</td></tr>
<tr class="memdesc:a905cb21fefc468abfa556ead4be8014d"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册一个通知处理程序，将向其发送接收到的telnet选项协商命令的通知。  <br /></td></tr>
<tr class="separator:a905cb21fefc468abfa556ead4be8014d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29fb76a848ee1242fb212699d7b68ec4"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a29fb76a848ee1242fb212699d7b68ec4">registerSpyStream</a> (spystream: OutputStream)</td></tr>
<tr class="memdesc:a29fb76a848ee1242fb212699d7b68ec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册一个OutputStream，用于监视TelnetClient会话中发生的事情。  <br /></td></tr>
<tr class="separator:a29fb76a848ee1242fb212699d7b68ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57f7509c55c5626229caeebf616039da"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a57f7509c55c5626229caeebf616039da">sendAYT</a> (timeout: Duration): Bool</td></tr>
<tr class="memdesc:a57f7509c55c5626229caeebf616039da"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送 Are You There（AYT）}序列并等待结果。  <br /></td></tr>
<tr class="separator:a57f7509c55c5626229caeebf616039da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f56c7b05f6f28264e424b3856abd6d8"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a5f56c7b05f6f28264e424b3856abd6d8">sendCommand</a> (command: UInt8)</td></tr>
<tr class="memdesc:a5f56c7b05f6f28264e424b3856abd6d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">向远程对等端发送命令字节，并添加IAC前缀。  <br /></td></tr>
<tr class="separator:a5f56c7b05f6f28264e424b3856abd6d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af87edff8d27ccb5711e25af10daa546d"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#af87edff8d27ccb5711e25af10daa546d">sendSubnegotiation</a> (message: Array&lt;Int64&gt;)</td></tr>
<tr class="memdesc:af87edff8d27ccb5711e25af10daa546d"><td class="mdescLeft">&#160;</td><td class="mdescRight">向远程对等体发送特定于协议的子协商消息。TelnetClient将添加IAC SB&amp;amp；IAC SE帧字节；message中的第一个字节应该是适当的telnet选项代码。  <br /></td></tr>
<tr class="separator:af87edff8d27ccb5711e25af10daa546d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c6ed802cdc3a8d0a4ddc0f15094542b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a0c6ed802cdc3a8d0a4ddc0f15094542b">setReaderThread</a> (flag: Bool)</td></tr>
<tr class="memdesc:a0c6ed802cdc3a8d0a4ddc0f15094542b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置读取器线程的状态。  <br /></td></tr>
<tr class="separator:a0c6ed802cdc3a8d0a4ddc0f15094542b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8962b924759725bb10840517c5fae3f3"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a8962b924759725bb10840517c5fae3f3">stopSpyStream</a> ()</td></tr>
<tr class="memdesc:a8962b924759725bb10840517c5fae3f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止监视此TelnetClient。  <br /></td></tr>
<tr class="separator:a8962b924759725bb10840517c5fae3f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cb94bafc89eb6ba92d6616487ece07b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a6cb94bafc89eb6ba92d6616487ece07b">unregisterInputListener</a> ()</td></tr>
<tr class="memdesc:a6cb94bafc89eb6ba92d6616487ece07b"><td class="mdescLeft">&#160;</td><td class="mdescRight">注销当前的 TelnetInputListener（如果有）。  <br /></td></tr>
<tr class="separator:a6cb94bafc89eb6ba92d6616487ece07b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a5ebf73f4ee4f3b05dcc79bb0750d44"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a4a5ebf73f4ee4f3b05dcc79bb0750d44">unregisterNotifHandler</a> ()</td></tr>
<tr class="memdesc:a4a5ebf73f4ee4f3b05dcc79bb0750d44"><td class="mdescLeft">&#160;</td><td class="mdescRight">注销当前通知处理程序。  <br /></td></tr>
<tr class="separator:a4a5ebf73f4ee4f3b05dcc79bb0750d44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcommonsNet_1_1telnet_1_1Telnet')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html">commonsNet.telnet.Telnet</a></td></tr>
<tr class="memitem:a007517fd9f34070dd2812d246fd149cd inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a007517fd9f34070dd2812d246fd149cd">init</a> ()</td></tr>
<tr class="memdesc:a007517fd9f34070dd2812d246fd149cd inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">空构造函数  <br /></td></tr>
<tr class="separator:a007517fd9f34070dd2812d246fd149cd inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58a6c3e89b777c64c8c67ab1a44f78dd inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a58a6c3e89b777c64c8c67ab1a44f78dd">init</a> (termtype: String)</td></tr>
<tr class="memdesc:a58a6c3e89b777c64c8c67ab1a44f78dd inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">允许指定终端类型。  <br /></td></tr>
<tr class="separator:a58a6c3e89b777c64c8c67ab1a44f78dd inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa2f98a6c8a1a5ce149c9881802bb16b inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#aaa2f98a6c8a1a5ce149c9881802bb16b">addOptionHandler</a> (opthand: <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOptionHandler.html">TelnetOptionHandler</a>): Unit</td></tr>
<tr class="memdesc:aaa2f98a6c8a1a5ce149c9881802bb16b inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册一个新的 TelnetOptionHandler 以供该 telnet 使用。  <br /></td></tr>
<tr class="separator:aaa2f98a6c8a1a5ce149c9881802bb16b inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0484eeddaa11d7018a5cc1835bbb26f2 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a0484eeddaa11d7018a5cc1835bbb26f2">deleteOptionHandler</a> (optcode: Int64): Unit</td></tr>
<tr class="memdesc:a0484eeddaa11d7018a5cc1835bbb26f2 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">取消注册 TelnetOptionHandler。  <br /></td></tr>
<tr class="separator:a0484eeddaa11d7018a5cc1835bbb26f2 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a6ede6d8612e8c67f5b15f49a0882f0 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a2a6ede6d8612e8c67f5b15f49a0882f0">registerNotifHandler</a> (notifhand: <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetNotificationHandler.html">TelnetNotificationHandler</a>): Unit</td></tr>
<tr class="memdesc:a2a6ede6d8612e8c67f5b15f49a0882f0 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册一个通知处理程序，将收到的 telnet 选项协商命令的通知发送到该通知处理程序。  <br /></td></tr>
<tr class="separator:a2a6ede6d8612e8c67f5b15f49a0882f0 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b63b3e901500afe98f79663f5467c27 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a9b63b3e901500afe98f79663f5467c27">unregisterNotifHandler</a> (): Unit</td></tr>
<tr class="memdesc:a9b63b3e901500afe98f79663f5467c27 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">取消注册当前通知处理程序。  <br /></td></tr>
<tr class="separator:a9b63b3e901500afe98f79663f5467c27 inherit pub_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:a1bb898df45d7b393d6c2814753b05be3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1bb898df45d7b393d6c2814753b05be3">init</a> ()</td></tr>
<tr class="memdesc:a1bb898df45d7b393d6c2814753b05be3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认构造函数  <br /></td></tr>
<tr class="separator:a1bb898df45d7b393d6c2814753b05be3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87551917056355777424650106857aaa inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a87551917056355777424650106857aaa">readTimeout</a> : ?Duration</td></tr>
<tr class="separator:a87551917056355777424650106857aaa inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bc17afff65b64aa296c3b55ada867ef inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1bc17afff65b64aa296c3b55ada867ef">writeTimeout</a> : ?Duration</td></tr>
<tr class="separator:a1bc17afff65b64aa296c3b55ada867ef inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6356afd60138e32bd7b05c8be35149d6 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a6356afd60138e32bd7b05c8be35149d6">remoteAddress</a> : IPAddress</td></tr>
<tr class="memdesc:a6356afd60138e32bd7b05c8be35149d6 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端连接到的远程地址。委托给<code><a class="el" href="">StreamingSocket#remoteAddress</a></code>  <br /></td></tr>
<tr class="separator:a6356afd60138e32bd7b05c8be35149d6 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48b65614c29c5816bddc0c0b6d9bf2df inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a48b65614c29c5816bddc0c0b6d9bf2df">remotePort</a> : UInt16</td></tr>
<tr class="memdesc:a48b65614c29c5816bddc0c0b6d9bf2df inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端连接到的远程主机的端口号  <br /></td></tr>
<tr class="separator:a48b65614c29c5816bddc0c0b6d9bf2df inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93a0598e2a9e67a8cd12779a30d65142 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a93a0598e2a9e67a8cd12779a30d65142">localAddress</a> : IPAddress</td></tr>
<tr class="memdesc:a93a0598e2a9e67a8cd12779a30d65142 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端套接字绑定到的本地地址。委托给<code><a class="el" href="">StreamingSocket#localAddress</a></code>  <br /></td></tr>
<tr class="separator:a93a0598e2a9e67a8cd12779a30d65142 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfc16ab47c94037df62fb2ba9d027f1e inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#acfc16ab47c94037df62fb2ba9d027f1e">localPort</a> : UInt16</td></tr>
<tr class="memdesc:acfc16ab47c94037df62fb2ba9d027f1e inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端绑定到的本地端口号  <br /></td></tr>
<tr class="separator:acfc16ab47c94037df62fb2ba9d027f1e inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9044380b2d1dd34779216a935fa265c inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#af9044380b2d1dd34779216a935fa265c">defaultPort</a> : UInt16</td></tr>
<tr class="memdesc:af9044380b2d1dd34779216a935fa265c inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端应连接的默认端口。  <br /></td></tr>
<tr class="separator:af9044380b2d1dd34779216a935fa265c inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c83df8caef820abcb2ab39ebeb3ffa7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a0c83df8caef820abcb2ab39ebeb3ffa7">connectTimeout</a> : Duration</td></tr>
<tr class="memdesc:a0c83df8caef820abcb2ab39ebeb3ffa7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接超时时间，将传递给socket对象的connect方法。  <br /></td></tr>
<tr class="separator:a0c83df8caef820abcb2ab39ebeb3ffa7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a488725edabd4193aa85e999f834245 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a7a488725edabd4193aa85e999f834245">isConnected</a> (): Bool</td></tr>
<tr class="memdesc:a7a488725edabd4193aa85e999f834245 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果套接字不是None，则返回true。  <br /></td></tr>
<tr class="separator:a7a488725edabd4193aa85e999f834245 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04e993f4f4374f378f9ddf730e7d1a1a inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a04e993f4f4374f378f9ddf730e7d1a1a">setSocketFactory</a> (socketFactory: ?<a class="el" href="classcommonsNet_1_1SocketFactory.html">SocketFactory</a>): Unit</td></tr>
<tr class="separator:a04e993f4f4374f378f9ddf730e7d1a1a inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4daf93a806b1a99d35e8b2d8394b2ff inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ad4daf93a806b1a99d35e8b2d8394b2ff">setServerSocketFactory</a> (serverSocketFactory: ?<a class="el" href="classcommonsNet_1_1ServerSocketFactory.html">ServerSocketFactory</a>): Unit</td></tr>
<tr class="separator:ad4daf93a806b1a99d35e8b2d8394b2ff inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fbcc57fadf7e3f7b9061232f3bc6303 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a0fbcc57fadf7e3f7b9061232f3bc6303">connect</a> (address: String): Unit</td></tr>
<tr class="memdesc:a0fbcc57fadf7e3f7b9061232f3bc6303 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a0fbcc57fadf7e3f7b9061232f3bc6303 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a641075d2637ea7141ee2a535d922ef47 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a641075d2637ea7141ee2a535d922ef47">connect</a> (address: String, port: UInt16): Unit</td></tr>
<tr class="memdesc:a641075d2637ea7141ee2a535d922ef47 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a641075d2637ea7141ee2a535d922ef47 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a5e20f3c11d7648fe8e13bbbfecc685 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a3a5e20f3c11d7648fe8e13bbbfecc685">connect</a> (address: String, port: UInt16, localAddress: Option&lt;SocketAddress&gt;): Unit</td></tr>
<tr class="memdesc:a3a5e20f3c11d7648fe8e13bbbfecc685 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a3a5e20f3c11d7648fe8e13bbbfecc685 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ea99f7b6db651e4209ec78e8055ad45 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1ea99f7b6db651e4209ec78e8055ad45">connect</a> (address: SocketAddress): Unit</td></tr>
<tr class="memdesc:a1ea99f7b6db651e4209ec78e8055ad45 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a1ea99f7b6db651e4209ec78e8055ad45 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0bfe81fc4e64ac8c8cb4b0982ea6ca7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ac0bfe81fc4e64ac8c8cb4b0982ea6ca7">connect</a> (address: SocketAddress, localAddress: Option&lt;SocketAddress&gt;): Unit</td></tr>
<tr class="memdesc:ac0bfe81fc4e64ac8c8cb4b0982ea6ca7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:ac0bfe81fc4e64ac8c8cb4b0982ea6ca7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d49495a9b64c3e848a020b509dcfdc0 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a9d49495a9b64c3e848a020b509dcfdc0">addProtocolCommandListener</a> (listener: <a class="el" href="classcommonsNet_1_1ProtocolCommandListener.html">ProtocolCommandListener</a>): Unit</td></tr>
<tr class="memdesc:a9d49495a9b64c3e848a020b509dcfdc0 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个ProtocolCommandListener  <br /></td></tr>
<tr class="separator:a9d49495a9b64c3e848a020b509dcfdc0 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a644174b37f378552318c6b93e44ae0e3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a644174b37f378552318c6b93e44ae0e3">removeProtocolCommandListener</a> (listener: <a class="el" href="classcommonsNet_1_1ProtocolCommandListener.html">ProtocolCommandListener</a>): Unit</td></tr>
<tr class="memdesc:a644174b37f378552318c6b93e44ae0e3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除一个ProtocolCommandListener  <br /></td></tr>
<tr class="separator:a644174b37f378552318c6b93e44ae0e3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a209c171637129b711301908fe5781329 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a209c171637129b711301908fe5781329">disconnect</a> (): Unit</td></tr>
<tr class="memdesc:a209c171637129b711301908fe5781329 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">端口socket连接。应该在完成使用后以及再次连接之前调用此方法。_socket_将设为None  <br /></td></tr>
<tr class="separator:a209c171637129b711301908fe5781329 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a174f159c659d115fbb46baace12215d7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a174f159c659d115fbb46baace12215d7">verifyRemote</a> (socket: StreamingSocket)</td></tr>
<tr class="memdesc:a174f159c659d115fbb46baace12215d7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">验证给定套接字的远端是否为当前SocketClient连接的同一主机。  <br /></td></tr>
<tr class="separator:a174f159c659d115fbb46baace12215d7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a67097fbabdb1fd3aee5107fd5e07d6d5"><td class="memItemLeft" align="right" valign="top">protected override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a67097fbabdb1fd3aee5107fd5e07d6d5">_connectAction_</a> (): Unit</td></tr>
<tr class="memdesc:a67097fbabdb1fd3aee5107fd5e07d6d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理特殊连接要求。  <br /></td></tr>
<tr class="separator:a67097fbabdb1fd3aee5107fd5e07d6d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classcommonsNet_1_1telnet_1_1Telnet"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcommonsNet_1_1telnet_1_1Telnet')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html">commonsNet.telnet.Telnet</a></td></tr>
<tr class="memitem:aa32860af9b9e57a0829e1eb884f43a83 inherit pro_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">protected open override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#aa32860af9b9e57a0829e1eb884f43a83">_connectAction_</a> (): Unit</td></tr>
<tr class="memdesc:aa32860af9b9e57a0829e1eb884f43a83 inherit pro_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">调用连接。  <br /></td></tr>
<tr class="separator:aa32860af9b9e57a0829e1eb884f43a83 inherit pro_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:afa2734bc5477eabf0599324d6ede038b inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">protected func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#afa2734bc5477eabf0599324d6ede038b">fireCommandSent</a> (command: String, message: String)</td></tr>
<tr class="memdesc:afa2734bc5477eabf0599324d6ede038b inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果有任何监听器，则向他们发送命令的详细信息。  <br /></td></tr>
<tr class="separator:afa2734bc5477eabf0599324d6ede038b inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9c596dad672de038df93ef77b63746f inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">protected open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ae9c596dad672de038df93ef77b63746f">fireReplyReceived</a> (replyCode: Int64, reply: String)</td></tr>
<tr class="memdesc:ae9c596dad672de038df93ef77b63746f inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果有任何监听器，则向他们发送回复的详细信息。  <br /></td></tr>
<tr class="separator:ae9c596dad672de038df93ef77b63746f inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5133836949f8b27b41a31473654c881 inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">protected open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ab5133836949f8b27b41a31473654c881">_connectAction_</a> ()</td></tr>
<tr class="memdesc:ab5133836949f8b27b41a31473654c881 inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">由于存在较多的connect方法，因此提供_connectAction_方法作为在建立连接后立即执行某些操作的手段，而不是重新实现所有connect方法。  <br /></td></tr>
<tr class="separator:ab5133836949f8b27b41a31473654c881 inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a1676f1a8e56480425722c0e0d490335f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a1676f1a8e56480425722c0e0d490335f">var readerThread</a> = true</td></tr>
<tr class="separator:a1676f1a8e56480425722c0e0d490335f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classcommonsNet_1_1telnet_1_1Telnet')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html">commonsNet.telnet.Telnet</a></td></tr>
<tr class="memitem:a41a30c09fbbfa4152bb3b6364102bf94 inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a41a30c09fbbfa4152bb3b6364102bf94">static let TERMINAL_TYPE</a> = 24</td></tr>
<tr class="memdesc:a41a30c09fbbfa4152bb3b6364102bf94 inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">终端类型选项  <br /></td></tr>
<tr class="separator:a41a30c09fbbfa4152bb3b6364102bf94 inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a286911c6262df04f1ae3e0355bf64dc6 inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a286911c6262df04f1ae3e0355bf64dc6">static let TERMINAL_TYPE_SEND</a> = 1</td></tr>
<tr class="memdesc:a286911c6262df04f1ae3e0355bf64dc6 inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送（用于子协商）  <br /></td></tr>
<tr class="separator:a286911c6262df04f1ae3e0355bf64dc6 inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52f4cc098994c8f7739883b30a741b4b inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a52f4cc098994c8f7739883b30a741b4b">static let TERMINAL_TYPE_IS</a> = 0</td></tr>
<tr class="memdesc:a52f4cc098994c8f7739883b30a741b4b inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否（用于子协商）  <br /></td></tr>
<tr class="separator:a52f4cc098994c8f7739883b30a741b4b inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09cf5a261a043d414a0fc3bf6e01308e inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a09cf5a261a043d414a0fc3bf6e01308e">let lock</a> = ReentrantMutex()</td></tr>
<tr class="separator:a09cf5a261a043d414a0fc3bf6e01308e inherit pro_attribs_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:a3da898c3d3f8488cf8a498ce1147eaf7 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a3da898c3d3f8488cf8a498ce1147eaf7">var _socket_</a> : ?StreamingSocket</td></tr>
<tr class="memdesc:a3da898c3d3f8488cf8a498ce1147eaf7 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接使用的socket  <br /></td></tr>
<tr class="separator:a3da898c3d3f8488cf8a498ce1147eaf7 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7610863136db5773a465f7a4feb10cd5 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a7610863136db5773a465f7a4feb10cd5">var _input_</a> : ?InputStream = None</td></tr>
<tr class="memdesc:a7610863136db5773a465f7a4feb10cd5 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">socket输入流  <br /></td></tr>
<tr class="separator:a7610863136db5773a465f7a4feb10cd5 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f2dfec175bdbd8f243aea7a7dae5ec inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a60f2dfec175bdbd8f243aea7a7dae5ec">var _output_</a> : ?OutputStream = None</td></tr>
<tr class="memdesc:a60f2dfec175bdbd8f243aea7a7dae5ec inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">socket输出流  <br /></td></tr>
<tr class="separator:a60f2dfec175bdbd8f243aea7a7dae5ec inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ae2f2d89af96526257357b68009b196 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1ae2f2d89af96526257357b68009b196">var _hostname_</a> : ?String</td></tr>
<tr class="memdesc:a1ae2f2d89af96526257357b68009b196 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于连接的主机名  <br /></td></tr>
<tr class="separator:a1ae2f2d89af96526257357b68009b196 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eeb213da3426f5b5fe3b0341f628106 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a0eeb213da3426f5b5fe3b0341f628106">var _remoteSocketAddress_</a> : ?SocketAddress</td></tr>
<tr class="memdesc:a0eeb213da3426f5b5fe3b0341f628106 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于连接的远程套接字地址。  <br /></td></tr>
<tr class="separator:a0eeb213da3426f5b5fe3b0341f628106 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a222ed7ff95066135d7427671c17cbb51 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a222ed7ff95066135d7427671c17cbb51">var _defaultPort_</a> : UInt16</td></tr>
<tr class="memdesc:a222ed7ff95066135d7427671c17cbb51 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端应连接的默认端口。  <br /></td></tr>
<tr class="separator:a222ed7ff95066135d7427671c17cbb51 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45e24f8b9f78f96b0e42499f5224c42a inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a45e24f8b9f78f96b0e42499f5224c42a">var _socketFactory_</a> : <a class="el" href="classcommonsNet_1_1SocketFactory.html">SocketFactory</a></td></tr>
<tr class="separator:a45e24f8b9f78f96b0e42499f5224c42a inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa278799518e05c3b7aeb28bcebb23375 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#aa278799518e05c3b7aeb28bcebb23375">var _serverSocketFactory_</a> : <a class="el" href="classcommonsNet_1_1ServerSocketFactory.html">ServerSocketFactory</a></td></tr>
<tr class="separator:aa278799518e05c3b7aeb28bcebb23375 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a839d81898a2aacfcf9bfd3b7b6f0ffb8 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a839d81898a2aacfcf9bfd3b7b6f0ffb8">var _connectTimeout_</a> : Duration = DEFAULT_CONNECT_TIMEOUT</td></tr>
<tr class="memdesc:a839d81898a2aacfcf9bfd3b7b6f0ffb8 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接超时时间  <br /></td></tr>
<tr class="separator:a839d81898a2aacfcf9bfd3b7b6f0ffb8 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57b01a4fe6374778b227c41a8a45b0e1 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a57b01a4fe6374778b227c41a8a45b0e1">let _commandSupport</a> : <a class="el" href="classcommonsNet_1_1ProtocolCommandSupport.html">ProtocolCommandSupport</a></td></tr>
<tr class="memdesc:a57b01a4fe6374778b227c41a8a45b0e1 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">ProtocolCommandSupport对象，用于管理ProtocolCommandListeners的注册和ProtocolCommandEvents的触发。  <br /></td></tr>
<tr class="separator:a57b01a4fe6374778b227c41a8a45b0e1 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pac-methods" name="pac-methods"></a>
包函数</h2></td></tr>
<tr class="memitem:a8aec7f3efd79df26601d481f4753159a"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a8aec7f3efd79df26601d481f4753159a">closeOutputStream</a> (): Unit</td></tr>
<tr class="separator:a8aec7f3efd79df26601d481f4753159a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1bfd4d1ade2a2e4f72174645ba9610c"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#aa1bfd4d1ade2a2e4f72174645ba9610c">flushOutputStream</a> ()</td></tr>
<tr class="separator:aa1bfd4d1ade2a2e4f72174645ba9610c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84ae7a378512a43114ed91b0a6e8e55b"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a84ae7a378512a43114ed91b0a6e8e55b">notifyInputListener</a> ()</td></tr>
<tr class="separator:a84ae7a378512a43114ed91b0a6e8e55b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td colspan="2" onclick="javascript:toggleInherit('pac_methods_classcommonsNet_1_1telnet_1_1Telnet')"><img src="closed.png" alt="-"/>&#160;包函数 继承自 <a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html">commonsNet.telnet.Telnet</a></td></tr>
<tr class="memitem:a6a39f0c98225acdda63f0caa8cd0fbdd inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a6a39f0c98225acdda63f0caa8cd0fbdd">_registerSpyStream</a> (spystream: OutputStream): Unit</td></tr>
<tr class="memdesc:a6a39f0c98225acdda63f0caa8cd0fbdd inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册OutputStream以监视Telnet会话中发生的事情。  <br /></td></tr>
<tr class="separator:a6a39f0c98225acdda63f0caa8cd0fbdd inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8539c9bac36136a99341f0482055f52 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#af8539c9bac36136a99341f0482055f52">_sendAYT</a> (_timeout: Duration): Bool</td></tr>
<tr class="memdesc:af8539c9bac36136a99341f0482055f52 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送 AYT 序列并等待结果。  <br /></td></tr>
<tr class="separator:af8539c9bac36136a99341f0482055f52 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab54b726af9cac9e17e73c741d6d63187 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ab54b726af9cac9e17e73c741d6d63187">_sendCommand</a> (cmd: Byte): Unit</td></tr>
<tr class="memdesc:ab54b726af9cac9e17e73c741d6d63187 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送命令，自动添加 IAC 前缀并刷新输出。  <br /></td></tr>
<tr class="separator:ab54b726af9cac9e17e73c741d6d63187 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad46ae629a7fa2f7d7a8f728abf187f6b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ad46ae629a7fa2f7d7a8f728abf187f6b">_sendSubnegotiation</a> (subn: Array&lt;Int64&gt;): Unit</td></tr>
<tr class="memdesc:ad46ae629a7fa2f7d7a8f728abf187f6b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">管理终端类型的子协商。  <br /></td></tr>
<tr class="separator:ad46ae629a7fa2f7d7a8f728abf187f6b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac93058e47c7da88870a32b81b62987ea inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ac93058e47c7da88870a32b81b62987ea">_stopSpyStream</a> (): Unit</td></tr>
<tr class="memdesc:ac93058e47c7da88870a32b81b62987ea inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止监视此 Telnet。  <br /></td></tr>
<tr class="separator:ac93058e47c7da88870a32b81b62987ea inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2714bb144f15c7f289024db49be39d25 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a2714bb144f15c7f289024db49be39d25">processAYTResponse</a> (): Unit</td></tr>
<tr class="memdesc:a2714bb144f15c7f289024db49be39d25 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理 AYT 的响应  <br /></td></tr>
<tr class="separator:a2714bb144f15c7f289024db49be39d25 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1617f438728d34e9e496561795743d1c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a1617f438728d34e9e496561795743d1c">processCommand</a> (command: Int64): Unit</td></tr>
<tr class="memdesc:a1617f438728d34e9e496561795743d1c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理一个命令。  <br /></td></tr>
<tr class="separator:a1617f438728d34e9e496561795743d1c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e34327fc0b90b65748dcbaae88984e0 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a4e34327fc0b90b65748dcbaae88984e0">processDo</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a4e34327fc0b90b65748dcbaae88984e0 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理 DO 请求。  <br /></td></tr>
<tr class="separator:a4e34327fc0b90b65748dcbaae88984e0 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba69aee4e6f7df8460be9e567bed40f inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#acba69aee4e6f7df8460be9e567bed40f">processDont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:acba69aee4e6f7df8460be9e567bed40f inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理 DONT 请求。  <br /></td></tr>
<tr class="separator:acba69aee4e6f7df8460be9e567bed40f inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4a8dfae7deeac1547191e580f155e19 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#af4a8dfae7deeac1547191e580f155e19">processSuboption</a> (suboption: Array&lt;Int64&gt;, suboptionLength: Int64): Unit</td></tr>
<tr class="memdesc:af4a8dfae7deeac1547191e580f155e19 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理子选项协商。  <br /></td></tr>
<tr class="separator:af4a8dfae7deeac1547191e580f155e19 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a5f2c79d04877b13580642968ec74d7 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a1a5f2c79d04877b13580642968ec74d7">processWill</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a1a5f2c79d04877b13580642968ec74d7 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理 WILL 请求。  <br /></td></tr>
<tr class="separator:a1a5f2c79d04877b13580642968ec74d7 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f233d481e2e42c5a3bc91a02a1784d8 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a7f233d481e2e42c5a3bc91a02a1784d8">processWont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a7f233d481e2e42c5a3bc91a02a1784d8 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理 WONT 请求。  <br /></td></tr>
<tr class="separator:a7f233d481e2e42c5a3bc91a02a1784d8 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab097a7e039bd295020dd18ffede5a7a6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ab097a7e039bd295020dd18ffede5a7a6">requestDo</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:ab097a7e039bd295020dd18ffede5a7a6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">请求 DO。  <br /></td></tr>
<tr class="separator:ab097a7e039bd295020dd18ffede5a7a6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2daf3ae644a4cec03cf0e48fe8405cd1 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a2daf3ae644a4cec03cf0e48fe8405cd1">requestDont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a2daf3ae644a4cec03cf0e48fe8405cd1 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">请求 DONT。  <br /></td></tr>
<tr class="separator:a2daf3ae644a4cec03cf0e48fe8405cd1 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a446bf7e4c4498691c49b9bf000282a3b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a446bf7e4c4498691c49b9bf000282a3b">requestedDo</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a446bf7e4c4498691c49b9bf000282a3b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:a446bf7e4c4498691c49b9bf000282a3b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41f9b4609115feb7ab43abf1ff7af45f inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a41f9b4609115feb7ab43abf1ff7af45f">requestedDont</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a41f9b4609115feb7ab43abf1ff7af45f inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:a41f9b4609115feb7ab43abf1ff7af45f inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a363a3ab61e861653a30e11690a5f9469 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a363a3ab61e861653a30e11690a5f9469">requestedWill</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a363a3ab61e861653a30e11690a5f9469 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:a363a3ab61e861653a30e11690a5f9469 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96d660eff3ca618024322564670f83d6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a96d660eff3ca618024322564670f83d6">requestedWont</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a96d660eff3ca618024322564670f83d6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:a96d660eff3ca618024322564670f83d6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3871c30c9ce35276f6664268a83ccd8 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ab3871c30c9ce35276f6664268a83ccd8">requestWill</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:ab3871c30c9ce35276f6664268a83ccd8 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">请求 WILL。  <br /></td></tr>
<tr class="separator:ab3871c30c9ce35276f6664268a83ccd8 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbaa708fd901086a4d3612ac413e1847 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#abbaa708fd901086a4d3612ac413e1847">requestWont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:abbaa708fd901086a4d3612ac413e1847 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">请求 WONT。  <br /></td></tr>
<tr class="separator:abbaa708fd901086a4d3612ac413e1847 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acef33c8f1cbf68bbd5f51756c4806a01 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#acef33c8f1cbf68bbd5f51756c4806a01">sendByte</a> (b: UInt8): Unit</td></tr>
<tr class="memdesc:acef33c8f1cbf68bbd5f51756c4806a01 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送一个字节  <br /></td></tr>
<tr class="separator:acef33c8f1cbf68bbd5f51756c4806a01 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af04c1075fb1a97940dac1fa553506fcb inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#af04c1075fb1a97940dac1fa553506fcb">sendDo</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:af04c1075fb1a97940dac1fa553506fcb inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送 DO。  <br /></td></tr>
<tr class="separator:af04c1075fb1a97940dac1fa553506fcb inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66bd246860f8ba7f5fd90bd09c707dea inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a66bd246860f8ba7f5fd90bd09c707dea">sendDont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a66bd246860f8ba7f5fd90bd09c707dea inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送 DONT。  <br /></td></tr>
<tr class="separator:a66bd246860f8ba7f5fd90bd09c707dea inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa72084d8c467cfae6a944e792e578172 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#aa72084d8c467cfae6a944e792e578172">sendTerminalType</a> (): Unit</td></tr>
<tr class="memdesc:aa72084d8c467cfae6a944e792e578172 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送终端类型信息。  <br /></td></tr>
<tr class="separator:aa72084d8c467cfae6a944e792e578172 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52da52c39b0a006abe47e3a4491de570 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a52da52c39b0a006abe47e3a4491de570">sendWill</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a52da52c39b0a006abe47e3a4491de570 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送 WILL  <br /></td></tr>
<tr class="separator:a52da52c39b0a006abe47e3a4491de570 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab23fb80858c4f6439880e9ffd2ae5b0 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#aab23fb80858c4f6439880e9ffd2ae5b0">sendWont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:aab23fb80858c4f6439880e9ffd2ae5b0 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送 WONT。  <br /></td></tr>
<tr class="separator:aab23fb80858c4f6439880e9ffd2ae5b0 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf39dc198fb14bf27694e3f8bbac235a inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#abf39dc198fb14bf27694e3f8bbac235a">setDo</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:abf39dc198fb14bf27694e3f8bbac235a inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:abf39dc198fb14bf27694e3f8bbac235a inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c5aca45b6c990c33a5a65deeabb111b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a8c5aca45b6c990c33a5a65deeabb111b">setDont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a8c5aca45b6c990c33a5a65deeabb111b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:a8c5aca45b6c990c33a5a65deeabb111b inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2fcd03e69776fad692d350aa75b78be inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ac2fcd03e69776fad692d350aa75b78be">setWantDo</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:ac2fcd03e69776fad692d350aa75b78be inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:ac2fcd03e69776fad692d350aa75b78be inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c23378d05f3699fbad4311406b88d09 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a0c23378d05f3699fbad4311406b88d09">setWantDont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a0c23378d05f3699fbad4311406b88d09 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:a0c23378d05f3699fbad4311406b88d09 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7735be624d7f538c48a9c8809adcb47 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ac7735be624d7f538c48a9c8809adcb47">setWantWill</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:ac7735be624d7f538c48a9c8809adcb47 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:ac7735be624d7f538c48a9c8809adcb47 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1afd34c651cd47ade1aaaa21dead334 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ae1afd34c651cd47ade1aaaa21dead334">setWantWont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:ae1afd34c651cd47ade1aaaa21dead334 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:ae1afd34c651cd47ade1aaaa21dead334 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb0378c4c1b1111687fcc0babb44893c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#afb0378c4c1b1111687fcc0babb44893c">setWill</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:afb0378c4c1b1111687fcc0babb44893c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:afb0378c4c1b1111687fcc0babb44893c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a491759a95ed67a3594164b7bcbfa39 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a2a491759a95ed67a3594164b7bcbfa39">setWont</a> (option: Int64): Unit</td></tr>
<tr class="memdesc:a2a491759a95ed67a3594164b7bcbfa39 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置选项的状态。  <br /></td></tr>
<tr class="separator:a2a491759a95ed67a3594164b7bcbfa39 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0540da43b9b220ea0a867e50f3d6aa inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#aca0540da43b9b220ea0a867e50f3d6aa">spyRead</a> (ch: UInt8): Unit</td></tr>
<tr class="memdesc:aca0540da43b9b220ea0a867e50f3d6aa inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">在监听流上发送一个被读取字符。  <br /></td></tr>
<tr class="separator:aca0540da43b9b220ea0a867e50f3d6aa inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e4ead0d94d427a640caa716f267f1f5 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a7e4ead0d94d427a640caa716f267f1f5">spyWrite</a> (ch: UInt8): Unit</td></tr>
<tr class="memdesc:a7e4ead0d94d427a640caa716f267f1f5 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">在监听流上发送一个被写入字符。  <br /></td></tr>
<tr class="separator:a7e4ead0d94d427a640caa716f267f1f5 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac034043e20347e48a6311357925592b6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#ac034043e20347e48a6311357925592b6">stateIsDo</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:ac034043e20347e48a6311357925592b6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:ac034043e20347e48a6311357925592b6 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71b868c4dc72f09f5367e887e629e7f4 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a71b868c4dc72f09f5367e887e629e7f4">stateIsDont</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a71b868c4dc72f09f5367e887e629e7f4 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:a71b868c4dc72f09f5367e887e629e7f4 inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f392491f05f6d33bfe357519fd000ad inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a7f392491f05f6d33bfe357519fd000ad">stateIsWill</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a7f392491f05f6d33bfe357519fd000ad inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">Looks for the state of the option.  <br /></td></tr>
<tr class="separator:a7f392491f05f6d33bfe357519fd000ad inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52db968a111045191dbf988b01e0a32c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1Telnet.html#a52db968a111045191dbf988b01e0a32c">stateIsWont</a> (option: Int64): Bool</td></tr>
<tr class="memdesc:a52db968a111045191dbf988b01e0a32c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找选项的状态。  <br /></td></tr>
<tr class="separator:a52db968a111045191dbf988b01e0a32c inherit pac_methods_classcommonsNet_1_1telnet_1_1Telnet"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a2308ae8c50af86545388eaa78cd7500e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a2308ae8c50af86545388eaa78cd7500e">static let DEFAULT_MAX_SUBNEGOTIATION_LENGTH</a> = 512;</td></tr>
<tr class="separator:a2308ae8c50af86545388eaa78cd7500e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac88bc670f6026e0fddda23696a465c84"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#ac88bc670f6026e0fddda23696a465c84">var maxSubnegotiationLength</a> : Int64</td></tr>
<tr class="separator:ac88bc670f6026e0fddda23696a465c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91a9d90bc091b14f69bd4bc4b84f6ad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#aa91a9d90bc091b14f69bd4bc4b84f6ad">var input</a> : ?InputStream</td></tr>
<tr class="separator:aa91a9d90bc091b14f69bd4bc4b84f6ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7524b558d3b1dc30aef69bef468c7b79"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a7524b558d3b1dc30aef69bef468c7b79">var output</a> : ?<a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html">TelnetOutputStream</a></td></tr>
<tr class="separator:a7524b558d3b1dc30aef69bef468c7b79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07d744309d55e6164dc3ea6e7b0b36fd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html#a07d744309d55e6164dc3ea6e7b0b36fd">var inputListener</a> : Option&lt;() -&gt; Unit&gt; = None</td></tr>
<tr class="separator:a07d744309d55e6164dc3ea6e7b0b36fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_attribs_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:acf063b8bd9929825dc931fa75918df33 inherit pub_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#acf063b8bd9929825dc931fa75918df33">static let NETASCII_EOL</a> : String = &quot;\r\n&quot;</td></tr>
<tr class="memdesc:acf063b8bd9929825dc931fa75918df33 inherit pub_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">大多数IETF协议使用的换行符，CRLF  <br /></td></tr>
<tr class="separator:acf063b8bd9929825dc931fa75918df33 inherit pub_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Telnet客户端类。 </p>
<p>该类可以通过首先使用SocketClient方法连接到服务器来使用。然后获得用于通过Telnet连接发送和接收数据的InputStream和OutputStream。当你使用完流后，你必须调用disconnect关闭。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a6ea0ab4acbad1904b97f7a2f273288cb" name="a6ea0ab4acbad1904b97f7a2f273288cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ea0ab4acbad1904b97f7a2f273288cb">&#9670;&#160;</a></span>init() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.telnet.TelnetClient.init </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>默认TelnetClient构造函数，设置终端类型 VT100 。 </p>

</div>
</div>
<a id="ae4f5ba176f9a5f705a6254da67a04e0d" name="ae4f5ba176f9a5f705a6254da67a04e0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4f5ba176f9a5f705a6254da67a04e0d">&#9670;&#160;</a></span>init() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.telnet.TelnetClient.init </td>
          <td>(</td>
          <td class="paramname"><em>maxSubnegotiationLength</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造一个具有指定最大子协商长度和默认终端类型的实例 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">maxSubnegotiationLength</td><td>子协商缓冲区的大小 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2794447d2fdd21a0326a8cc4bcca6c63" name="a2794447d2fdd21a0326a8cc4bcca6c63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2794447d2fdd21a0326a8cc4bcca6c63">&#9670;&#160;</a></span>init() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.telnet.TelnetClient.init </td>
          <td>(</td>
          <td class="paramname"><em>termtype</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用指定的终端类型构造实例。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">termtype</td><td>要使用的终端类型 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9f85ac359fbc7aee7229fe7e5e323852" name="a9f85ac359fbc7aee7229fe7e5e323852"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f85ac359fbc7aee7229fe7e5e323852">&#9670;&#160;</a></span>init() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.telnet.TelnetClient.init </td>
          <td>(</td>
          <td class="paramname"><em>termtype</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>maxSubnegotiationLength</em>:&#160;</td>
          <td class="paramtype">Int64&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用指定的终端类型和最大子协商长度构造实例 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">termtype</td><td>要使用的终端类型 </td></tr>
    <tr><td class="paramname">maxSubnegotiationLength</td><td>子协商缓冲区的大小 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a67097fbabdb1fd3aee5107fd5e07d6d5" name="a67097fbabdb1fd3aee5107fd5e07d6d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67097fbabdb1fd3aee5107fd5e07d6d5">&#9670;&#160;</a></span>_connectAction_()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">protected override func commonsNet.telnet.TelnetClient._connectAction_ </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理特殊连接要求。 </p>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td>如果在连接设置过程中发生错误 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5c8f8aef6debb8832f6699aa84aa3c1b" name="a5c8f8aef6debb8832f6699aa84aa3c1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c8f8aef6debb8832f6699aa84aa3c1b">&#9670;&#160;</a></span>addOptionHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetClient.addOptionHandler </td>
          <td>(</td>
          <td class="paramname"><em>opthand</em>:&#160;</td>
          <td class="paramtype">TelnetOptionHandler</td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>为此telnet客户端注册一个新的TelnetOptionHandler以供使用。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">opthand</td><td>- 要注册的选项处理程序。</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">InvalidTelnetOptionException</td><td></td></tr>
    <tr><td class="paramname">IOException</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8aec7f3efd79df26601d481f4753159a" name="a8aec7f3efd79df26601d481f4753159a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aec7f3efd79df26601d481f4753159a">&#9670;&#160;</a></span>closeOutputStream()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">func commonsNet.telnet.TelnetClient.closeOutputStream </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a495c8e32396ca1ac109ce67c40b204d1" name="a495c8e32396ca1ac109ce67c40b204d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a495c8e32396ca1ac109ce67c40b204d1">&#9670;&#160;</a></span>deleteOptionHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetClient.deleteOptionHandler </td>
          <td>(</td>
          <td class="paramname"><em>optcode</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注销TelnetOptionHandler。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">optcode</td><td>- 要注销的选项代码</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">InvalidTelnetOptionException</td><td></td></tr>
    <tr><td class="paramname">IOException</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae458e2814aa115e677695fd6b66b51d2" name="ae458e2814aa115e677695fd6b66b51d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae458e2814aa115e677695fd6b66b51d2">&#9670;&#160;</a></span>disconnect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetClient.disconnect </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>断开telnet会话，关闭输入和输出流以及套接字。调用disconnect以正确关闭连接。 </p>

</div>
</div>
<a id="aa1bfd4d1ade2a2e4f72174645ba9610c" name="aa1bfd4d1ade2a2e4f72174645ba9610c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1bfd4d1ade2a2e4f72174645ba9610c">&#9670;&#160;</a></span>flushOutputStream()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">func commonsNet.telnet.TelnetClient.flushOutputStream </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a8f96113d9e3e87b7dc9e2a0c2649b233" name="a8f96113d9e3e87b7dc9e2a0c2649b233"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f96113d9e3e87b7dc9e2a0c2649b233">&#9670;&#160;</a></span>getInputStream()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.getInputStream </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回telnet连接输入流。 </p>
<dl class="section return"><dt>返回</dt><dd>telnet连接输入流。 </dd></dl>

</div>
</div>
<a id="a4377f74653a839a00b2fc193e9c21250" name="a4377f74653a839a00b2fc193e9c21250"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4377f74653a839a00b2fc193e9c21250">&#9670;&#160;</a></span>getLocalOptionState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.getLocalOptionState </td>
          <td>(</td>
          <td class="paramname"><em>option</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回本地端选项的状态 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">option</td><td>- 选项待检查</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当地选项的状态 </dd></dl>

</div>
</div>
<a id="a0a16848d636d528ca4adbd71de2f7474" name="a0a16848d636d528ca4adbd71de2f7474"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a16848d636d528ca4adbd71de2f7474">&#9670;&#160;</a></span>getOutputStream()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.getOutputStream </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回telnet连接输出流 </p>
<dl class="section return"><dt>返回</dt><dd>telnet连接输出流 </dd></dl>

</div>
</div>
<a id="abba7c40aa13358f9e3a6a0a5c659a1b5" name="abba7c40aa13358f9e3a6a0a5c659a1b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abba7c40aa13358f9e3a6a0a5c659a1b5">&#9670;&#160;</a></span>getReaderThread()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.getReaderThread </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取读取器线程的状态。 </p>
<dl class="section return"><dt>返回</dt><dd>如果启用了读取器线程，则为true，否则为false </dd></dl>

</div>
</div>
<a id="ae355dd0fe4187bdbfcc6526b02d0a157" name="ae355dd0fe4187bdbfcc6526b02d0a157"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae355dd0fe4187bdbfcc6526b02d0a157">&#9670;&#160;</a></span>getRemoteOptionState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.getRemoteOptionState </td>
          <td>(</td>
          <td class="paramname"><em>option</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回远程端选项的状态 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">option</td><td>- 选项待检查。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>远程侧选项的状态。 </dd></dl>

</div>
</div>
<a id="a84ae7a378512a43114ed91b0a6e8e55b" name="a84ae7a378512a43114ed91b0a6e8e55b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84ae7a378512a43114ed91b0a6e8e55b">&#9670;&#160;</a></span>notifyInputListener()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">func commonsNet.telnet.TelnetClient.notifyInputListener </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abd8d62824fc7c04b0c36b4cb9de1a259" name="abd8d62824fc7c04b0c36b4cb9de1a259"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd8d62824fc7c04b0c36b4cb9de1a259">&#9670;&#160;</a></span>registerInputListener()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.registerInputListener </td>
          <td>(</td>
          <td class="paramname"><em>listener</em>:&#160;</td>
          <td class="paramtype">() -&gt; Unit</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注册一个监听器，以便在输入流上有新的传入数据可供读取时收到通知。一次只支持一个侦听器。 </p>
<p>更确切地说，每当可用于立即读取的字节数从零转换为非零。请注意，可能需要多次读取才能清空缓冲区并重置 仅当为连接启用了setReaderThread读取器线程时，才支持通知。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">listener</td><td>注册监听器；替换之前的任何内容 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a905cb21fefc468abfa556ead4be8014d" name="a905cb21fefc468abfa556ead4be8014d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a905cb21fefc468abfa556ead4be8014d">&#9670;&#160;</a></span>registerNotifHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetClient.registerNotifHandler </td>
          <td>(</td>
          <td class="paramname"><em>notifhand</em>:&#160;</td>
          <td class="paramtype">TelnetNotificationHandler</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注册一个通知处理程序，将向其发送接收到的telnet选项协商命令的通知。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">notifhand</td><td>- 要注册的TelnetNotificationHandler </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a29fb76a848ee1242fb212699d7b68ec4" name="a29fb76a848ee1242fb212699d7b68ec4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29fb76a848ee1242fb212699d7b68ec4">&#9670;&#160;</a></span>registerSpyStream()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.registerSpyStream </td>
          <td>(</td>
          <td class="paramname"><em>spystream</em>:&#160;</td>
          <td class="paramtype">OutputStream</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注册一个OutputStream，用于监视TelnetClient会话中发生的事情。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">spystream</td><td>- OutputStream，会话活动将在其上得到响应。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a57f7509c55c5626229caeebf616039da" name="a57f7509c55c5626229caeebf616039da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57f7509c55c5626229caeebf616039da">&#9670;&#160;</a></span>sendAYT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.sendAYT </td>
          <td>(</td>
          <td class="paramname"><em>timeout</em>:&#160;</td>
          <td class="paramtype">Duration</td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>发送 Are You There（AYT）}序列并等待结果。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timeout</td><td>- 等待回应的时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果AYT收到响应，则为true，否则为false。</dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">InterruptedException</td><td></td></tr>
    <tr><td class="paramname">IllegalArgumentException</td><td></td></tr>
    <tr><td class="paramname">IOException</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5f56c7b05f6f28264e424b3856abd6d8" name="a5f56c7b05f6f28264e424b3856abd6d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f56c7b05f6f28264e424b3856abd6d8">&#9670;&#160;</a></span>sendCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.sendCommand </td>
          <td>(</td>
          <td class="paramname"><em>command</em>:&#160;</td>
          <td class="paramtype">UInt8</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向远程对等端发送命令字节，并添加IAC前缀。 </p>
<p>此方法不等待任何响应。远程端发送的消息可以通过注册适当的用户TelnetOptionHandler来处理。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>命令的代码 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td>如果在写入消息时发生I/O错误 </td></tr>
    <tr><td class="paramname">IllegalArgumentException</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af87edff8d27ccb5711e25af10daa546d" name="af87edff8d27ccb5711e25af10daa546d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af87edff8d27ccb5711e25af10daa546d">&#9670;&#160;</a></span>sendSubnegotiation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.sendSubnegotiation </td>
          <td>(</td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">Array&lt;Int64&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向远程对等体发送特定于协议的子协商消息。TelnetClient将添加IAC SB&amp;amp；IAC SE帧字节；message中的第一个字节应该是适当的telnet选项代码。 </p>
<p>此方法不等待任何响应。远程端发送的子协商消息可以通过注册适当的用户来处理 TelnetOptionHandler。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>选项代码后跟子协商有效载荷 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IllegalArgumentException</td><td>如果code message的长度为零 </td></tr>
    <tr><td class="paramname">IOException</td><td>如果在写入消息时发生I/O错误 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0c6ed802cdc3a8d0a4ddc0f15094542b" name="a0c6ed802cdc3a8d0a4ddc0f15094542b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c6ed802cdc3a8d0a4ddc0f15094542b">&#9670;&#160;</a></span>setReaderThread()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.setReaderThread </td>
          <td>(</td>
          <td class="paramname"><em>flag</em>:&#160;</td>
          <td class="paramtype">Bool</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置读取器线程的状态。 </p>
<p>启用后，将为新连接创建一个内部读取器线程，以便在传入数据到达时读取传入数据。 这导致立即处理选项协商、通知等（至少在固定大小的内部缓冲区填满之前）。 否则，不会创建任何线程，所有协商和选项处理都会被推迟，直到对读取输入流。 必须启用读取器线程才能支持 TelnetInputListener。 当调用此方法时，读取器线程状态将应用于所有后续连接；当前连接（如果有的话）不受影响。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">flag</td><td>true表示启用读取器线程，false表示禁用 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8962b924759725bb10840517c5fae3f3" name="a8962b924759725bb10840517c5fae3f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8962b924759725bb10840517c5fae3f3">&#9670;&#160;</a></span>stopSpyStream()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.stopSpyStream </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>停止监视此TelnetClient。 </p>

</div>
</div>
<a id="a6cb94bafc89eb6ba92d6616487ece07b" name="a6cb94bafc89eb6ba92d6616487ece07b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cb94bafc89eb6ba92d6616487ece07b">&#9670;&#160;</a></span>unregisterInputListener()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetClient.unregisterInputListener </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注销当前的 TelnetInputListener（如果有）。 </p>

</div>
</div>
<a id="a4a5ebf73f4ee4f3b05dcc79bb0750d44" name="a4a5ebf73f4ee4f3b05dcc79bb0750d44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a5ebf73f4ee4f3b05dcc79bb0750d44">&#9670;&#160;</a></span>unregisterNotifHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetClient.unregisterNotifHandler </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注销当前通知处理程序。 </p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a2308ae8c50af86545388eaa78cd7500e" name="a2308ae8c50af86545388eaa78cd7500e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2308ae8c50af86545388eaa78cd7500e">&#9670;&#160;</a></span>static let DEFAULT_MAX_SUBNEGOTIATION_LENGTH</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetClient.static let DEFAULT_MAX_SUBNEGOTIATION_LENGTH = 512;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa91a9d90bc091b14f69bd4bc4b84f6ad" name="aa91a9d90bc091b14f69bd4bc4b84f6ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91a9d90bc091b14f69bd4bc4b84f6ad">&#9670;&#160;</a></span>var input</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetClient.var input : ?InputStream</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a07d744309d55e6164dc3ea6e7b0b36fd" name="a07d744309d55e6164dc3ea6e7b0b36fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07d744309d55e6164dc3ea6e7b0b36fd">&#9670;&#160;</a></span>var inputListener</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetClient.var inputListener : Option&lt;() -&gt; Unit&gt; = None</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac88bc670f6026e0fddda23696a465c84" name="ac88bc670f6026e0fddda23696a465c84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac88bc670f6026e0fddda23696a465c84">&#9670;&#160;</a></span>var maxSubnegotiationLength</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetClient.var maxSubnegotiationLength : Int64</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7524b558d3b1dc30aef69bef468c7b79" name="a7524b558d3b1dc30aef69bef468c7b79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7524b558d3b1dc30aef69bef468c7b79">&#9670;&#160;</a></span>var output</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetClient.var output : ?<a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html">TelnetOutputStream</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1676f1a8e56480425722c0e0d490335f" name="a1676f1a8e56480425722c0e0d490335f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1676f1a8e56480425722c0e0d490335f">&#9670;&#160;</a></span>var readerThread</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetClient.var readerThread = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/telnet/<a class="el" href="telnet__client_8cj.html">telnet_client.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1telnet.html">telnet</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html">TelnetClient</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
